import plugin from '../../lib/plugins/plugin.js'
import {
    segment
}
    from 'oicq'
import fetch from "node-fetch";

let url = ""

export class tokidoki666 extends plugin {
    constructor() {
        super({
            /** 功能名称 */
            name: '666',
            /** 功能描述 */
            dsc: '',
            event: 'message',
            priority: 1145,
            rule: [
                {
                    reg: "^#*骰子(.*)$",
                    fnc: '666'
                }
            ]

        })
    }

    async 666(e) {
        let number = e.msg.substr(3, e.msg.length)
        number = Number(number);
        await e.reply(segment.dice(number));
    }

}